(global.webpackJsonp = global.webpackJsonp || []).push([ [ "components/diy_components/xnlf" ], {
    "22c0": function(n, t, e) {
        e.r(t);
        var o = e("f1db"), c = e.n(o);
        for (var a in o) "default" !== a && function(n) {
            e.d(t, n, function() {
                return o[n];
            });
        }(a);

        t.default = c.a;
    },
    "48f9": function(n, t, e) {
        e.r(t);
        var o = e("571d"), c = e("22c0");
        for (var a in c) "default" !== a && function(n) {
            e.d(t, n, function() {
                return c[n];
            });
        }(a);
        var f = e("2877"), u = Object(f.a)(c.default, o.a, o.b, !1, null, null, null);
        t.default = u.exports;
    },
    "571d": function(n, t, e) {
        var o = function() {
            this.$createElement;
            this._self._c;
        }, c = [];
        e.d(t, "a", function() {
            return o;
        }), e.d(t, "b", function() {
            return c;
        });

    },
    f1db: function(n, t, e) {
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        t.default = {
            name: "xnlf",
            props: {
                xnlf: {
                    params: {},
                    style: {},
                    avatars: []
                }
            },
            data: function() {
                return {
                    $host: this.$host,
                    fxs: this.xnlf.params.fxs,
                    dzs: this.xnlf.params.dzs,
                    isLike: 0,
                    isShare: 0,
                    openid: wx.getStorageSync('openid'),
                    globaluser: this.globaluser
                };
            },


            created: function() {
                var that = this
                setTimeout(function () {
                    if (wx.getStorageSync('is_like') === undefined || wx.getStorageSync('is_like') === 0){
                        that.isLike = 0
                        console.log('现在的is_like',that.isLike)
                    }else{
                        that.isLike = 1
                        console.log('现在的is_like',that.isLike)
                    }
                    if (wx.getStorageSync('is_share') === undefined || wx.getStorageSync('is_share') === 0){
                        that.isShare = 0
                        console.log('现在的is_share',that.isShare)
                    }else{
                        that.isShare =1
                        console.log('现在的is_share',that.isShare)
                    }
                    // that.isShare = wx.getStorageSync('is_share')
                    // console.log('现在的is_share',that.isShare)
                },3000)

            },
          
            methods:{
                //分享
                toShare: function (e) {
                    console.log('调用成功')
                    if (this.isShare === 1){
                        wx.showModal({
                            title: '提示',
                            content: '每个用户只能分享一次！',
                            showCancel: false
                        })
                        return false;
                    }
                    this.fxs++;
                    wx.request({
                        url: this.$baseurl+'doupdateshareandlike',
                        method: 'GET',
                        data: {
                            op: 'update_share_num',
                            uniacid: this.$uniacid,
                            nowfxs: this.fxs,
                            openid: this.openid,
                            source: this.source

                        },
                        success: function(e){
                            console.log(e);
                            console.log('分享成功');

                        },
                        complete:function (e) {
                            console.log('执行完成',e)
                        }
                    })

                    this.isShare = 1
                    wx.setStorageSync('is_share', 1)
                },
            //  点赞
                toLike: function (e) {
                    if (this.isLike === 1){
                        wx.showModal({
                            title: '提示',
                            content: '每个用户只能点赞一次！',
                            showCancel: false
                        })
                        return false;
                    }
                  this.dzs++
                    wx.request({
                        url: this.$baseurl+'doupdateshareandlike',
                        method: 'GET',
                        data: {
                            op: 'update_like_num',
                            uniacid: this.$uniacid,
                            nowdzs:  this.dzs,
                            source: this.source,
                            openid:this.openid
                        },
                    })
                    this.isLike = 1
                    wx.setStorageSync('is_like', 1)

                }
            }

        };
    },

} ]), (global.webpackJsonp = global.webpackJsonp || []).push([ "components/diy_components/xnlf-create-component", {
    "components/diy_components/xnlf-create-component": function(n, t, e) {
        e("543d").createComponent(e("48f9"));
    }
}, [ [ "components/diy_components/xnlf-create-component" ] ] ]);